﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ServiceModel.DomainServices;
using System.ServiceModel.DomainServices.Server;

namespace RIATestCollection.Web
{
    [MetadataType(typeof(Contact.ContactMetadata))]
    partial class Contact
    {

        public class ContactMetadata
        {
            [Editable(false)]
            [Display(AutoGenerateField = false, Order = 1)]
            public object contactID = null;

            [Required]
            [Editable(true)]
            [Display(AutoGenerateField = true, Order = 2, Name = "Name")]
            public object contactName = null;

            [Editable(true)]
            [Display(AutoGenerateField = true, Order = 3, Name = "Address")]
            public object contactAddress = null;

            [Editable(true)]
            [Display(AutoGenerateField = true, Order = 4, Name = "Zip Code")]
            public object contactZip = null;

            [Editable(true)]
            [Display(AutoGenerateField = true, Order = 5, Name="Phone")]
            public string contactPhone = null;
        }
    }
}